<!DOCTYPE html>
<head>
<style>
    /* css reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
	border:0;
	font-family:Consolas;
	padding:5px;
}

.color {
    color:#a60b0b;
}
</style>
</head>
<body>
    <div style="background-color:#a60b0b;width:100%;height:1em;"></div>
    <br />
    <br />
    <!--[if IE]><div style="width:600px;"><![endif]-->
    <div class="content" style="padding-left:25px;max-width:600px;">
        <p style="font-family:Consolas;font-size:1.4em;font-weight:bold;">Princess Anne High School</p>
        <p class="text" style="font-family:Consolas;font-size:1.2em;">
            Robotics Team 2012<br />
            <br /><br /><br />
            <span style="font-weight:bold;">Project start date:</span> Tuesday, February 14, 2012<br /><br />
            <span style="font-weight:bold;">Project edit date:</span> Tuesday, February 14, 2012<br /><br />
            <span style="font-weight:bold;">Project Description:</span><br />
            This code is designed to move limited range angle servos in various positions based on degrees using the MoveMotor() function.<br />
<br />
The MoveMotor(pin, position) function is structured so that the first variable represents the pin number the command will be run on and the second variable recieves the angular position in which the motor will move.<br />
<br />
In the test program starts by initialing cogs like this one to move the motors:<br />
<span class="color">coginit(cog, command, @stack)</span><br />
<br />
This was done for easy visualization as to what processes were running at a given time and also provided an easy method for killing cog processes when necessary to run more commands. The cog process could be killed by using the function:<br />
<span class="color">cogstop(cog)</span><br />

            <br />
            <br />
            <br />
            <span style="font-weight:bold;">Additional Notations:</span><br />
            This memory management system of declaring and killing cogs may seem unnecessary, but through testing we learned that this is in fact necessary because the MoveMotor() function continuously runs, regardless if the motor reaches its target angular position or not.
            <br />
            <br />
            <span style="font-weight:bold;">Things to Fix or Adjust:</span><br />
           We need to implement a feature that automatically kills the MoveMotor() function and cog processes after a certain amount of time or after the desired angular position has been reached to clear out excess memory.
            <br />
            <br />
	    <span style="font-weight:bold;">Version Identification Number:</span> 1.18.2<br />
	    <br />
            <br />
            <br />
            <br />
            Copyright PAHS Robotics 2012<br />Robert Schofield and James Taylor
            <br />
            <br />
        </p>
    </div>
    <!--[if IE]></div><![endif]-->
</body>
</html>